package cn.david.org.service;

import cn.david.basic.util.PageList;

import cn.david.org.domain.Department;
import cn.david.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    void add(Department department);

    void upadte(Department department);

    void del(Long id );

    Department getById(Long id );

    List<Department> getAll();

    /*
     分页查询
     */
    PageList<Department> queryData(DepartmentQuery query);




    void deleteByIds(Long[] ids);

    List<Department> getDeptTree();
}
